<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础模板</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <Count/>
    </div>

    <script>
        const Count = {
            name: "Count",
            template: `
            <div>
            <h3>{{count}}</h3>
            <button @click="count++">累加</button>
            </div>
            `,
            data(){
                return {
                    count:0
                }
            }
        }
        const vc=Vue.extend({name:'cop',template:'',data(){return}})
        const vcc= new vc
        console.log(vcc);//组件构造函数，Vue调用extend
        console.log(vcc.__proto__);//组件的原型对象
        console.log(vcc.__proto__.__proto__);//vue的原型对象
        console.log(vcc.__proto__.__proto__.__proto__);//object
        
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: "#app",
            data() {
                return {

                }
            },
            components:{
                Count:Count
            }
        })
    </script>
</body>

</html>